package com.patchmanage.back.exception;

import com.patchmanage.back.result.CodeMsg;

/**
  *  自定义异常
 * @author HuiZhao
 *
 */
public class SystemException extends RuntimeException{
	
	private static final long serialVersionUID = 1L;
	
	private CodeMsg codeMsg;//状态码
    
    public SystemException(CodeMsg codeMsg) {
    	super(codeMsg.toString());
        this.codeMsg = codeMsg;
    }
    public CodeMsg getCodeMsg() {
        return codeMsg;
    }
}
